package com.eshop.tools.service;

import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;
import com.eshop.tools.service.dto.LocalStorageDto;
import java.util.List;
import java.util.Map;
import org.springframework.data.domain.Pageable;
import com.eshop.tools.service.dto.LocalStorageQueryCriteria;
import com.eshop.tools.domain.LocalStorage;
import com.eshop.common.service.BaseService;

public interface LocalStorageService extends BaseService<LocalStorage>
{
    Map<String, Object> queryAll(final LocalStorageQueryCriteria criteria, final Pageable pageable);
    
    List<LocalStorageDto> queryAll(final LocalStorageQueryCriteria criteria);
    
    LocalStorageDto findById(final Long id);
    
    LocalStorageDto create(final String name, final MultipartFile file);
    
    void deleteAll(final Long[] ids);
    
    void download(final List<LocalStorageDto> localStorageDtos, final HttpServletResponse response) throws IOException;
    
    void updateLocalStorage(final LocalStorageDto resources);
}
